aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/[username]/index.js
blob: 5de1316fbafc651c77b8b1a0c16b4e7f0fa6cf95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { get } from '$lib/utils';

export async function GET({ params }) {
	let { username } = params;
	let body;

	try {
		body = await get(`/users/${username}`);
	} catch (e) {
		body = {};
	}

	return { body };
}